package cn.com.infcn.spring.beans.cycle;

import org.springframework.stereotype.Repository;

@Repository
public class Car implements ICar{

	private String company;
	private String brand;

	private int maxSpeed;
	private float price;
	
	public void init(){
		System.out.println("Car init method ... ");
	}
	
	public void destroy(){
		System.out.println("Car destroy method ...");
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public int getMaxSpeed() {
		return maxSpeed;
	}

	public void setMaxSpeed(int maxSpeed) {
		this.maxSpeed = maxSpeed;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	@Override
	public String toString() {
		return "Car [company=" + company + ", brand=" + brand + ", maxSpeed=" + maxSpeed + ", price=" + price + "]";
	}
}
